<HTML>
<head>
<script language="javascript">AC_FL_RunContent = 0;</script>
<script language="javascript"> DetectFlashVer = 0; </script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
<script language="JavaScript" type="text/javascript">
<!--
var requiredMajorVersion = 9;
var requiredMinorVersion = 0;
var requiredRevision = 45;
-->
</script>
<style type="text/css">
table.border1px {
	border-collapse: collapse;
    border: 1px solid #000000;
}
table.border1px td {
    border: 1px solid #000000;
    padding: 3px;
}
</style>
</head>


<BODY bgcolor="#FFFFFF">

<table>
    <tr>
        <td>
        <table class="border1px">
        <tr>
            <td><b>#</b></td><td align='center'><b>Gebruiker</b></td><td align='center'><b>Gebruik</b></td>
        </tr>
        <?php
            include_once("functions_bandwidth_domain.php");
            include_once("datefunctions.php");

            $Einde = date("Y/m/d") . " 23:59:59";
            $Start = date("Y/m/d") . " 00:00:00";
            $Start = DateAdd("d", -6, $Start);
            $Start = date("Y/m/d", $Start) . ' 00:00:00';
            $bw = func_bw_volume_domain_top10_periode($Start, $Einde);

            $i = 0;
            while ($i < 10){
                echo "<tr><td>" . ($i + 1) . "</td><td>" . $bw[$i][0] . "&nbsp;</td><td align='right'>" . $bw[$i][1] . " MB</td></tr>";

                $i++;
            }
        ?>
        </table>
        </td>
        <td>
            <script language="JavaScript" type="text/javascript">
            <!--
            if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
                alert("This page requires AC_RunActiveContent.js.");
            } else {
                var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
                if(hasRightVersion) {
                    AC_FL_RunContent(
                        'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,45,0',
                        'width', '400',
                        'height', '200',
                        'scale', 'noscale',
                        'salign', 'TL',
                        'bgcolor', '#FFFFFF',
                        'wmode', 'opaque',
                        'movie', 'charts',
                        'src', 'charts',
                        'FlashVars', 'library_path=charts_library&xml_source=graph_bw_total_7days_domain_xml.php?<?php echo rand(); ?>',
                        'id', 'my_chart',
                        'name', 'my_chart',
                        'menu', 'true',
                        'allowFullScreen', 'true',
                        'allowScriptAccess','sameDomain',
                        'quality', 'high',
                        'align', 'left',
                        'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
                        'play', 'true',
                        'devicefont', 'false'
                        );
                } else {
                    var alternateContent = 'This content requires the Adobe Flash Player. '
                    + '<u><a href=http://www.macromedia.com/go/getflash/>Get Flash</a></u>.';
                    document.write(alternateContent);
                }
            }
            // -->
            </script>
            <noscript>
                <P>This content requires JavaScript.</P>
            </noscript>
        </td>
    </tr>
</table>

</BODY>
</HTML>